package com.laboratory.report.lab04.lab0402;

/**
 * 测试
 */
public class Lab0402Main {

    public static void main(String[] args) {
        SerializerEvent serializerEvent = new SerializerEvent();
        Event[] events = serializerEvent.readFromFile();
        for(Event event : events) {
            event.joinEvent(new Athlete("张飞", 25, "China"));
            event.display();
        }
        // 写入后的文件位置: target/classes/event-write.txt
        serializerEvent.writeToFile(events);
    }
}
